package com.becca.cake.service.system;

import com.becca.cake.model.system.PostDO;

/**
 * 岗位管理Service接口定义
 * @author hejinguo
 * @version $Id: IUserPostService.java, v 0.1 2013-12-17 下午12:25:18
 */
public interface IUserPostService {
    /**
     * 岗位管理中查询岗位树
     * @author hejinguo
     * @return
     * @throws Exception
     */
    String selectPostTree() throws Exception;

    /**
     * 根据ID查询岗位信息
     * @author hejinguo
     * @param postId
     * @return
     * @throws Exception
     */
    String selectPostMsgById(String postId) throws Exception;

    /**
     * 添加岗位信息
     * @author hejinguo
     * @param postDO
     * @throws Exception
     */
    void insertPost(PostDO postDO) throws Exception;

    /**
     * 修改岗位信息
     * @author hejinguo
     * @param postDO
     * @throws Exception
     */
    void updatePostById(PostDO postDO) throws Exception;
}
